import http from "./request"

// 查询用户列表
export const getUserListApi = async () => {
    return await http.get("/api/build/getUserList", null)
}

// 新增
export const addApi = async (params) => {
    return await http.post("/api/build", params)
}

// 编辑
export const editApi = async (params) => {
    return await http.put("/api/build", params)
}

// 删除
export const deleteApi = async (params) => {
    return await http.delete("/api/build", params)
}

// 栋数列表
export const getListApi = async (params) => {
    return await http.get("/api/build/list", params)
}

// 新增层数
export const addStroyApi = async (params) => {
    return await http.post("/api/storey", params)
}

// 编辑层数
export const editStroyApi = async (params) => {
    return await http.put("/api/storey", params)
}

// 删除层数
export const deleteStroyApi = async (params) => {
    return await http.delete("/api/storey", params)
}

// 获取楼栋列表
export const getBuildListApi = async () => {
    return await http.get("/api/build/getBuildList", null)
}

// 获取层数列表
export const getStoryListApi = async (params) => {
    return await http.get("/api/storey/getStoryList", params)
}

// 根据性别获取楼栋列表
export const getBuildListBySexApi = async (params) => {
    return await http.get("/api/build/getBuildListBySex", params)
}